<template>
  <div>
    test 组件 测试 pinia 实现本地缓存
  </div>


  <p>{{ test.testObj }}</p>
  <button @click="test.setUer({ id: '1', mobile: '1', account: '1', avatar: '1', token: '1' })">
    登录
  </button>
  <button @click="test.delUser()">退出</button>
</template>

<script setup lang="ts">

import { useTestStore } from '@/store/useTest'

const test = useTestStore()


console.log(test)


</script>

<style scoped></style>